<template>
  <el-container>
    <el-header height="40px" class="header1"> 
        <div class="header-div"> 
              <el-text @click="to_personal">个人中心</el-text>
        </div>  
    </el-header>
    <router-view></router-view>
  </el-container>
</template>

<script setup>

import {useRouter} from 'vue-router'
const router = useRouter();
const to_personal = ()=>{
  router.push('/index/profile')
}
</script>

<style scoped>
.header1 {
  background-color: #333 !important;
  
}

.header-div{
  width: 70%;
  padding: 0 16px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: end;
}
.el-text{
  color: #b0b0b0 ;
  cursor:pointer;
}
</style>
